Skip to content

arm64: dts: qcom: sc8180x-surface-pro-x: add Type Cover Hall-sensor lid switch - #205

Open
robertijtsma wants to merge 1 commit into
linux-surface:spx/v7.3from
robertijtsma:spx-dts-lid-switch
Open

robertijtsma wants to merge 1 commit into
linux-surface:spx/v7.3from
robertijtsma:spx-dts-lid-switch

Conversation

@robertijtsma

Copy link
Copy Markdown

Adds the hardware Hall-effect lid switch (SW_LID) for the Type Cover on Microsoft Surface Pro X (TLMM GPIO 121, active-low) as a gpio-keys node with wakeup-source and wakeup-event-action = <EV_ACT_DEASSERTED> (wake on lid open).

Verification

  • Passes scripts/checkpatch.pl with 0 errors, 0 warnings.
  • sc8180x-surface-pro-x.dts preprocesses and compiles cleanly with dtc.
  • Live-tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface) for lid close/open SW_LID events and s2idle suspend/wake.
  • Ref: Support for Suspend surface-pro-x#29

…id switch

Add the gpio-keys Type Cover Hall-effect lid switch (SW_LID) wired to
TLMM GPIO 121 (active-low), configured as a wakeup source on lid open
(EV_ACT_DEASSERTED).

Tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface)
for lid-close s2idle suspend and lid-open wake.

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant